<?php
if (!isset($_GET['categoria']) || !$_GET['categoria']) {
    $ctg = Doctrine::getTable('categoria')->find(2);
    header('location: '.URL.'admin/productos/'.$ctg->getUri());
}
?>